﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EntityComponentSystem.Framework;

namespace EntityComponentSystem.Demos.SpaceAttack
{

    public class GameEngine : EntityComponentSystem.Framework.GameEngine
    {
        
        //public RicochetSystem RicochetSystem = null;
        //public RenderSystem RenderSystem = null;

        public GameEngine()
        {
            //RicochetSystem = new RicochetSystem(this);
            //RenderSystem = new RenderSystem(this, form);

            //var rcom = new RenderComponent();
            //RenderSystem.AddEntity(new Entity(this), rcom);

            //RegisterSystem(RicochetSystem);
            //RegisterSystem(RenderSystem);
        }

        protected override void OnStart()
        {

        }


        protected override void OnStop()
        {
        }

        protected override void OnDispose()
        {
            //if (RicochetSystem != null)
            //{
            //    RicochetSystem.Dispose();
            //    RicochetSystem = null;
            //}

            //if (RenderSystem != null)
            //{
            //    RenderSystem.Dispose();
            //    RenderSystem = null;
            //}
        }
    }

}
